const $http = window.$http;
// 职务列表分页查询
export function getPage(params) {
  return $http.request({ url: "/supervise/post/queryPage", params });
}

// 职务列表查询
export function getPostList (params) {
  return $http.request({ url: "/supervise/post/queryList", params });
}

// 职务新增
export function addPost(params) {
  return $http.request({ method: 'post', url: "/supervise/post/add", data: params });
}

// 根据ids批量删除职务
export function delPost(ids) {
  return $http.request({ method: 'delete', url: `/supervise/post/deleteBatch/${ids}` });
}

// 根据id查询职务详情
export function getPostById(id) {
  return $http.request({ url: `/supervise/post/detail/${id}` });
}

// 职务编辑
export function editPost(params) {
  return $http.request({ method: 'put', url: "/supervise/post/edit", data: params });
}
